#ifndef __BSP_SPI_H
#define __BSP_SPI_H

#include "gd32f10x.h"                   // Device header

void SPI1_Init(void);
uint8_t SPI1_ReadWriteByte(uint8_t TxData);

void SPI1_DMA_Init(void);//SPI1-TX->DMA0-CH4
void SPI1_DMA_Transmit(const void* srcaddr, uint8_t datawidth, uint8_t srcaddrinc, uint32_t datanum);

#endif
